#include "hitlist/backup.hpp"
#include <iostream>


int main()
{
  int test[]={1,2,3,4,5};
  backup bb;
  backup bt;
  //bb.initialize("./backup.test.binary", "backup_%d.binary");
  //bt.initialize("./backup.test.json", "backup_%d.json");
  bb.initialize("./backup.test.binary/bbbb_%d");
  bt.initialize("./backup.test.json/tttt_%d");
  for ( int i = 0 ; ; i++)
  {
    bb.write((const char*)(test), sizeof(test) );
    bb.flush();
    //bt.write("Привет мир!");
    bt.flush();
    sleep(1);
    std::cout<<".";
    std::cout.flush();
  }
  return 0;
}
